package com.hzyb.shopCommodity.service.impl;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hzyb.oldpack.dao.JdbcDao;
import com.hzyb.shopCommodity.service.ShopCommodityService;
@Service
public class ShopCommodityServiceImpl implements ShopCommodityService{


	@Resource
	private com.hzyb.shopCommodity.dao.ShopCommodityDao shopCommodityDao;

	@Resource
	private JdbcDao JdbcDao;

	@Override
	public com.hzyb.shopCommodity.model.ShopCommodity getShopCommodityById(String commoditySid) {
		// TODO Auto-generated method stub
		return shopCommodityDao.findOne(commoditySid);
	}

	@Override
	public List<Map<String, Object>> getShopPic(String commoditySid) {
		// TODO Auto-generated method stub
		return JdbcDao.getShopPictureTableByBusinessSid(commoditySid);
	}

	@Override
	public List<Map<String, Object>> queryShop(String keyWord) {
		// TODO Auto-generated method stub
		return JdbcDao.queryShop(keyWord);
	}


}

